RowActionBar
RowActionBar
Toolbar 是列表页面自定义按钮管理类,提供自定义按钮的添加、显示控制等等...
| 属性/方法 | 类型 | 描述 |
|---|---|---|
| addButton(button) | 参数:button: Omit<ButtonOptions, 'menuItems'>返回:无 | 添加自定义按钮, 行按钮现阶段无法添加菜单按钮(menuItems 属性无效) |
| removeButton(key) | 参数:key: string 按钮标识返回:无 | 根据按钮标识 key 设置对应按钮的可见状态 |
| getButton(key) | 参数:key: string 按钮标识返回:Button | 获取列按钮引用 |
| getRowButton(key, rowIndex) | 参数:key: string 按钮标识, rowIndex: number 行索引返回:Button | 获取行按钮引用 注意: registerOnClick 在行按钮中无效,需要使用同级的 getButton 获取列按钮注册点击事件 |